local skel = fk.CreateSkill {
  name = "rmt__fengqifuyao",
  tags = {Skill.Lord},
}

skel:addEffect(fk.Death, {
  anim_type = "special",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(skel.name) and target.kingdom:startsWith("fuyao")
  end,
  on_cost = function (self, event, target, player, data)
    return player.room:askToSkillInvoke(player, {skill_name = skel.name, prompt = "#rmt__fengqifuyao-invoke:::"..target.general})
  end,
  on_use = function(self, event, target, player, data)
    player.room:changeHero(player, target.general, false, true, true, false, false)
  end,
})

Fk:loadTranslationTable{
  ["rmt__fengqifuyao"] = "风起扶摇",
  [":rmt__fengqifuyao"] = "主公技，“扶摇”势力的角色死亡时，你可以将其武将牌替换为你的副将。",
  ["#rmt__fengqifuyao-invoke"] = "风起扶摇：是否将副将变为 %arg？",
}

return skel
